{% extends 'generic.html' %}
{% load i18n %} {# Translating code #}

{% block cssBlock %}
	<link href="/media/css/{{request.session.theme}}/pageForm/style.css" type="text/css" rel="stylesheet"/>
	<link href="/media/css/{{request.session.theme}}/pageProfile/style.css" type="text/css" rel="stylesheet"/>	
{% endblock %}

{% block article %}
<h1>{% blocktrans %}Password{% endblocktrans %}</h1>
<p class="explanation">{% blocktrans %}Change the password to enter your account{% endblocktrans %}</p>
<form action="." method="POST">
{% csrf_token %}
{% if request.GET.next %}
	<input type="hidden" value="{{request.GET.next}}" name="next"> 
{% endif %}
	<table>
		<tr>
			<td>
				{{form.old_password.label_tag}}
			</td>
			<td>
				{{form.old_password}}
			</td>
			<td>
				{{form.old_password.errors}}
			</td>
		</tr>
		<tr>
			<td>
				{{form.new_password1.label_tag}}
			</td>
			<td>
				{{form.new_password1}}
			</td>
			<td>
				{{form.new_password1.errors}}
			</td>
		</tr>
		<tr>
			<td>
				{{form.new_password2.label_tag}}
			</td>
			<td>
				{{form.new_password2}}
			</td>
			<td>
				{{form.new_password2.errors}}
			</td>
		</tr>
	
	</table>
<input type="submit"/>
</form>

{% endblock %}